import Vue from 'vue'
import App from './App.vue'
//引入路由
import router from '@/router'
//注册全局的组件
import TypeNav from '@/components/TypeNav'
Vue.component(TypeNav.name,TypeNav);

import Carousel from '@/components/Carousel'
Vue.component(Carousel.name,Carousel);

import Pagination from '@/components/Pagination';
Vue.component(Pagination.name,Pagination)

//引入仓库
import store from '@/store'
//引入MockServer.js----mock数据
import "@/mock/mockServe";

//引入swiper的样式
import "swiper/css/swiper.css"
//

Vue.config.productionTip = false

// import {reqCategoryList} from '@/api'
// reqCategoryList();

new Vue({
  render: h => h(App),
  //配置全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  router,
  //注册仓库:组件实例
  store,
}).$mount('#app')
